package com.sumer.psychology.photo.domain.model;

import com.sumer.psychology.common.domain.model.AbstractDomainEvent;
import com.sumer.psychology.common.domain.model.Author;

/**
 * 照片上传事件
 * User: zhenguang.zhu
 * Date: 2014/8/29
 * Time: 13:51
 */
public class PhotoUploadedEvent extends AbstractDomainEvent {
    private PhotoId photoId;
    private String title;
    private String description;
    private String fileId;
    private AlbumId albumId;
    private Author owner;

    public PhotoUploadedEvent(PhotoId photoId, String title, String description,
                              String fileId, AlbumId albumId, Author owner) {
        super();
        this.photoId = photoId;
        this.title = title;
        this.description = description;
        this.fileId = fileId;
        this.albumId = albumId;
        this.owner = authorFrom(owner);
    }

    public PhotoId photoId() {
        return photoId;
    }

    public String title() {
        return title;
    }

    public String description() {
        return description;
    }

    public String fileId() {
        return fileId;
    }

    public AlbumId albumId() {
        return albumId;
    }

    public Author owner() {
        return owner;
    }
}
